home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / CDinsight < prev    next >
Encoding:
Text File  |  2002-10-08  |  339 b   |  23 lines

  1. #!/bin/sh
  2.  
  3. SRCDIR=`dirname $0`/usr/share/Insight/library
  4.  
  5. INSIGHT=`which insight`
  6. if [ $? != 0 ]; then
  7.     echo "\nInsight not found on this system...\n"
  8.     exit 1
  9. fi
  10.  
  11. SZ=`/bin/ls -s "$INSIGHT" | awk '{printf "%s", $1}'` 
  12.  
  13. if [ "$SZ" -lt 200 ]; then
  14.     # new
  15.     insight -n -l "$SRCDIR/SGI_bookshelves"
  16. else
  17.     # old
  18.     insight -l "$SRCDIR"
  19. fi
  20.  
  21. exit 0
  22.  
  23.